<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'SIDEP: Sistema de Depreciação');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta("viewport", "width=device-width, initial-scale=1.0");
		echo $this->Html->meta("description", "Sistema de Depreciação de Bens Materiais");
		echo $this->Html->meta("author", "Diovane Monteiro, Renan Reis, Kathlen Brum");
		echo $this->Html->meta('icon');

		echo $this->Html->css('bootstrap');
		echo $this->Html->css('bootstrap-responsive');
		echo $this->Html->css('bootstrap-custom');
		echo $this->Html->css('bootstrap-responsive-custom');
		echo $this->Html->css('sidep');
				
		echo $this->Html->script('jquery-1.7.2'); 
				
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	
</head>
<body>
	  
	  <div class="header"><h2>SIDEP - Sistema de Depreciação</h2><?php //echo $this->Html->image('logoufam.jpg'); ?></div>	  
	  
	  <div class="subnav">
	    <ul class="nav nav-pills">
	      <li class="dropdown">
	        <a class="dropdown-toggle" data-toggle="dropdown" href="#">Cadastros<b class="caret"></b></a>
	        <ul class="dropdown-menu">
	          <li><?php echo $this->Html->link('Contas', array('controller' => 'contaContabils', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Produtos', array('controller' => 'produtos', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Unidades', array('controller' => 'unidades', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Fornecedores', array('controller' => 'fornecedors', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Fabricantes', array('controller' => 'fabricantes', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Bens Patrimoniais', array('controller' => 'bem_patrimonials', 'action' => 'index'));?></li>
	        </ul>
	      </li>
	      <li class="dropdown">
	        <a class="dropdown-toggle" data-toggle="dropdown" href="#">Movimentações <b class="caret"></b></a>
	        <ul class="dropdown-menu">
	          <li class=""><a href="#">Inventário</a></li>
	          <li class=""><a href="#">Reavaliação</a></li>
	          <li class=""><a href="#">Depreciação</a></li>
	          <li class=""><a href="#">Amortização</a></li>
	          <li class=""><a href="#">Exaustão</a></li>
	        </ul>
	      </li>
	      <li class="dropdown">
	        <a class="dropdown-toggle" data-toggle="dropdown" href="#">Relatórios <b class="caret"></b></a>
	        <ul class="dropdown-menu">
	        	<li class=""><?php echo $this->Html->link('Resumo Financeiro', array('controller' => 'produtos', 'action' => 'index'));?></li>
	          <li class=""><?php echo $this->Html->link('Bens Baixados', array('controller' => 'unidades', 'action' => 'index'));?></li>
	        	
	          <li class=""><a href="#">Resumo Financeiro</a></li>
	          <li class=""><a href="#">Bens Baixados</a></li>
	          <li class=""><a href="#">Bens Caducados</a></li>
	        </ul>
	      </li>
	      <li class="dropdown">
	      	<?php echo $this->Html->link('Importação', array('controller' => 'Importacao', 'action' => 'index'))?>
	        <!-- <a class="dropdown-toggle" data-toggle="dropdown" href="#">Importação <b class="caret"></b></a> -->
	      </li>	      
	    </ul>
	  </div>  
    
    <div class="container-fluid">
      <div class="row-fluid">
			<?php echo $this->Session->flash(); ?>
			<?php echo $this->fetch('content'); ?>
      </div><!--/row-->
      <hr/>
      <footer>
        <p>&copy; ICOMP - Instituto de Computação 2012</p>
      </footer>
    </div><!--/.fluid-container-->
    
    <div id="ajax-indicator" class="hidden">
    	Processando...			
    </div>
    
    <?php //echo $this->Html->script('jquery-1.7.2');  
    ?>
    <?php echo $this->Html->script('bootstrap-dropdown');  ?> 
	<?php echo $this->Html->script('bootstrap-scrollspy');  ?>
	<?php echo $this->Html->script('application');  ?> 
	<?php echo $this->Js->writeBuffer();?>
	
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
